import { FC } from 'react'
import store from '../../store'
import { myContext } from './context'

export const Provider:FC = (props) => {
  const { dispatch } = store;
  return <div>
    <myContext.Provider value={{dispatch}}>
      {props.children}
    </myContext.Provider>
  </div>
}


export default Provider;
